

/** * @(#)Post.java, 2018年2月4日. * * Copyright 2018 Netease, Inc. All rights reserved. * NETEASE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */
 package com.zswlib.netease.webapp.po;

import java.util.Date;
import java.util.Set;

import org.apache.ibatis.type.Alias;

/** * * @author GZ钟绍威(zhongshaowei@corp.netease.com) 2018年2月4日 * *  */
@Alias("Post")
public class Post {
    private Integer id;
    private Blog blog;
    private Author author;
    private Date createdOn;
    private Section section;
    private String subject;
    private String body;
    private Integer draft;
    private Set<Comment> comments;
    private Set<PostTag> tags;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Blog getBlog() {
        return blog;
    }
    public void setBlog(Blog blog) {
        this.blog = blog;
    }
    public Author getAuthor() {
        return author;
    }
    public void setAuthor(Author author) {
        this.author = author;
    }
    public Section getSection() {
        return section;
    }
    public void setSection(Section section) {
        this.section = section;
    }
    public String getBody() {
        return body;
    }
    public void setBody(String body) {
        this.body = body;
    }
    public Integer getDraft() {
        return draft;
    }
    public void setDraft(Integer draft) {
        this.draft = draft;
    }
    public Set<Comment> getComments() {
        return comments;
    }
    public void setComments(Set<Comment> comments) {
        this.comments = comments;
    }
    public Set<PostTag> getTags() {
        return tags;
    }
    public void setTags(Set<PostTag> tags) {
        this.tags = tags;
    }
    public String getSubject() {
        return subject;
    }
    public void setSubject(String subject) {
        this.subject = subject;
    }
    public Date getCreatedOn() {
        return createdOn;
    }
    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }
    @Override
    public String toString() {
        return "Post [id=" + id + ", blog=" + blog + ", author=" + author + ", createdOn=" + createdOn + ", section="
                + section + ", subject=" + subject + ", body=" + body + ", draft=" + draft + ", comments=" + comments
                + ", tags=" + tags + "]";
    }
    
}